using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace BuildWheel
{
    public class Inspector : MonoBehaviour
    {
        public static void Ref(File fileInfo)
        {
            instance.Ref1(fileInfo);
        }

        private static Inspector instance;
        private File fileInfo;

        private GameObject last;

        private void Ref1(File _fileInfo)
        {
            fileInfo = _fileInfo;
            var tf = transform.Find($"{fileInfo.t}_Inspector");
            if (tf != null)
            {
                tf.gameObject.SetActive(true);
                if (last == tf.gameObject)
                {
                    return;
                }

                last = tf.gameObject;
            }

            switch (fileInfo.t)
            {
                case "texture":
                    break;
                case "audioClip":
                case "text":
                case "sprite":
                case "anim":
                case "model":
                case "prefab":
                case "controller":

                    break;
            }
        }
    }
}